import request from '@/config/axios'

// 分页查询
export const getUserExamPage = async (params: any) => {
  return await request.get({ url: '/system/userExam/page', params })
}

// 导出最终结果
export const exportFinal = async (params: any) => {
  return await request.download({ url: '/system/exam-flow/exportFinal', params })
}

// 导出过程
export const exportProcess = async (params: any) => {
  return await request.download({ url: '/system/exam-flow/export', params })
}

// 批量删除（GET，ids 逗号分隔）
export const batchDeleteUserExam = async (ids: number[]) => {
  return await request.post({ url: '/system/userExam/batchDelete', params: { ids: ids.join(',') } })
}


